package com.lc.cms.dao;

import com.lc.cms.dto.UserDepartmentDto;
import com.lc.cms.dto.UserDto;
import com.lc.cms.dto.UserPagingParameterDto;
import com.lc.cms.dto.UserRoleDto;
import com.lc.cms.model.UserModel;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface IUserDao {

    int create(UserModel user);

    int update(UserModel user);

    int updatePassword(UserModel user);

    int delete(int userId);

    int deleteUserDepartmentByUserId(int userId);

    int deleteUserRoleByUserId(int userId);

    int createUserDepartment(UserDepartmentDto user);

    int createUserRole(UserRoleDto user);

    List<UserDto> getListPagingByCondition(UserPagingParameterDto user);

    int getCountByCondition(UserPagingParameterDto user);
}
